package com.jarics.test.client.entities;

import com.jarics.gwt.client.composites.ColumnConfigIf;
import com.jarics.gwt.client.composites.ColumnConfigImpl;
import com.jarics.gwt.client.composites.GridableImpl;

public class PlannedExercise extends GridableImpl {
	
	//Exercise title
	String exerciseTitle;
	
	public PlannedExercise() {
		super();
	}

	public PlannedExercise(String exerciseTitle) {
		super();
		this.exerciseTitle = exerciseTitle;
	}

	public Object getColumnData( int colIdx){
		switch (colIdx) {	
		case 0:
			return "/images/edit.gif";		
		case 1:
			return "true";
		default:
			return "Empty Column";
		}
	}

	public ColumnConfigIf[] getColumnConfig(){
	
	    ColumnConfigIf[] columns = new ColumnConfigIf[]{
	            //column ID is company which is later used in setAutoExpandColumn
	    		new ColumnConfigImpl("Delete", "delete", ColumnConfigImpl.IMAGE),
	    		new ColumnConfigImpl("Available", "available", ColumnConfigImpl.CHECK_BOX),
	    };
	    return columns;
	}
}
